package vip.zhenzicheng.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;

/**
 * @author zhenzicheng
 * @DESCRIPTION: 广播模式 监听
 * @DATE: 2022/04/25 9:08 PM
 */
public class FanoutListener implements MessageListener {
  @Override
  public void onMessage(Message message) {
    // 打印消息
    System.out.println(new String(message.getBody()));
  }
}
